home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 21 / CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso / CUCD / Utilities / PGP / source / pgp50i-b8a / src / config_win32.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-04  |  2.2 KB  |  89 lines

  1. /*
  2.  * config_win32.h -- Configuration for PGPlib. This file contains
  3.  * the configuration information for PGP, and it should be
  4.  * included in all PGP source files.
  5.  *
  6.  * Copyright (C) 1996,1997 Pretty Good Privacy, Inc. All rights reserved.
  7.  *
  8.  * $Id: config_win32.h,v 1.6.2.2 1997/06/11 22:29:44 mhw Exp $
  9.  */
  10.  
  11. /* Define to empty if the compiler does not support 'const' variables. */
  12. /* #undef const */
  13.  
  14. /* Define to `long' if <sys/types.h> doesn't define. */
  15. /* #undef off_t */
  16.  
  17. /* Define to `unsigned' if <sys/types.h> doesn't define. */
  18. /* #undef size_t */
  19.  
  20. /* Define if you have the ANSI C header files. */
  21. #define STDC_HEADERS 1
  22.  
  23. /* Checks for various specific header files */
  24. #define HAVE_FCNTL_H 1
  25. #define HAVE_LIMITS_H 1
  26. #define HAVE_STDARG_H 1
  27. #define HAVE_STDLIB_H 1
  28. #undef HAVE_UNISTD_H
  29. #undef HAVE_SYS_IOCTL_H
  30. #undef HAVE_SYS_TIME_H
  31. #define HAVE_SYS_TIMEB_H 1
  32. #undef HAVE_SYS_PARAM_H
  33.  
  34. /* Check if <sys/time.h> is broken and #includes <time.h> wrong */
  35. #undef TIME_WITH_SYS_TIME
  36.  
  37. /* Checks for various functions */
  38. #define HAVE_GETHRTIME 0
  39. #define HAVE_CLOCK_GETTIME 0
  40. #define HAVE_CLOCK_GETRES 0
  41. #define HAVE_GETTIMEOFDAY 0
  42. #define HAVE_GETITIMER 0
  43. #define HAVE_SETITIMER 0
  44. #define HAVE_FTIME 1
  45.  
  46. /* Define "UNIX" if we are on UNIX and "UNIX" is not already defined */
  47. #if defined(unix) || defined(__unix) || defined (__unix__)
  48. #ifndef UNIX
  49. #define UNIX 1
  50. #endif
  51. #endif
  52.  
  53. #if (_MSC_VER>=1000) && defined(_WIN32)
  54. #define _POSIX_ 1
  55. #define pclose _pclose
  56. #define popen _popen
  57. #define strcasecmp stricmp
  58. #define strncasecmp strnicmp
  59. #endif
  60.  
  61. /* Tags for exported functions */
  62. #if defined(_WIN32) && !defined(NODLL)
  63. # if defined(PGPLIB)
  64. # define PGPExport __declspec( dllexport )
  65. # else
  66. # define PGPExport __declspec( dllimport )
  67. # endif
  68. # if defined(PGPTTYLIB)
  69. # define PGPTTYExport __declspec( dllexport )
  70. # else
  71. # define PGPTTYExport __declspec( dllimport )
  72. # endif
  73. # if defined(PGPKDBLIB)
  74. # define PGPKDBExport __declspec( dllexport )
  75. # else
  76. # define PGPKDBExport __declspec( dllimport )
  77. # endif
  78. # if defined(SPGPLIB)
  79. # define SPGPExport __declspec( dllexport )
  80. # else
  81. # define SPGPExport __declspec( dllimport )
  82. # endif
  83. #else
  84. # define PGPExport
  85. # define PGPTTYExport
  86. # define PGPKDBExport
  87. # define SPGPExport
  88. #endif
  89.